<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/asignacion.css" type="text/css">
				<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?><?php echo Yii::app()->user->getPresentacionRol();?>" type="text/css">
		<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" type="text/css">
	</head>
	<body>
<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'modificarasignacion-form',	
)); 
?>
		<title>Solicitud</title> 
			<table>
			    <tr>
					<td>Buscador
					<br>
					<br>
					</td>
						<td>
						<?php echo CHtml::textField('valor','',array('style'=>'width:110px'));?><?php echo CHtml::dropDownList('tipo', 'tipo', array('nro_pedido' => 'Numero pedido', 'nro_usuario' => 'Numero usuario')); ?> 
						</td>
						<td>
						<?php echo CHtml::textField('fecha','',array('style'=>'width:80px','placeholder'=>'dd/mm/aaaa'));?> <?php echo CHtml::textField('hora','',array('style'=>'width:80px','placeholder'=>'hh:mm'));?> <?php echo CHtml::submitButton('Buscar',array('name'=>'buscar')); ?> 
						<br>
						<br>
						</td>
						
				</tr>
			
				<tr>
					<td>Numero de Usuario</td>
						<td>
							<?php echo $form->textField($model,'nro_usuario',array('placeholder'=>'Ingresa aqui numero usuario')); ?>
		                    <?php echo $form->error($model,'nro_usuario'); ?>
						</td>
				</tr>

				<tr>
					<td>Hora</td>
						<td>
	       					<?php echo $form->textField($model,'hora',array('type'=>'time','placeholder'=>"hh:mm",'spellcheck'=>"false")); ?>
		                    <?php echo $form->error($model,'hora'); ?>
						</td>
				</tr>

				<tr>
					<td>Fecha</td>
						<td>
						<?php
							$this->widget('zii.widgets.jui.CJuiDatePicker',array(
								'name'=>'datepicker',
								'model' => $model,
								'language'=>'es',
								'attribute' => 'fecha',
								'options'=>array(
									'showAnim'=>'slide',//'slide','fold','slideDown','fadeIn','blind','bounce','clip','drop'
									'dateformat'=>'dd/mm/yyyy',
								),
								'htmlOptions'=>array(
									'style'=>'height:20px;',
								),
							));
							?>
		                    <?php echo $form->error($model,'fecha'); ?>
						</td>
				</tr>
				<tr>
					<td>sucursal</td>
							<td>
							<div class="row">
								<?php echo $form->dropDownList($model, 'nro_sucursal', array('1' => 'Florencio Varela', '2' => 'Berazategui','3'=>'Quilmes')); ?>
								<?php echo $form->error($model,'nro_sucursal'); ?>
							</div>
							</td>
					</tr>
<tr>
					<td>Especialidad</td>
						<td>
							<?php echo $form->textField($model,'especialidad');?>
		                    <?php echo $form->error($model,'especialidad'); ?>
						</td>
				</tr>
					<td>Prioridad</td>
				<td>
				<?php echo $form->dropDownList($model, 'prioridad', array('bajo'=>'Baja','medio' => 'Medio', 'alto' => 'Alta'),array("width"=>"35")); ?>
				<?php echo $form->error($model,'prioridad'); ?>
				<tr>
				<tr>
					<td>Detalle</td>
						<td>
	       					<?php echo $form->textArea($model,'detalle',array('style'=>'height:40px;')) ?>
		                    <?php echo $form->error($model,'detalle'); ?>
						</td>
				</tr>
				<tr>
						<td>
							<div class="row buttons">
							<br>
							<br>
								<input name="button" type="button" onclick="parent.location='<?php echo $this->createUrl('/site/pedido'); ?>'" value="Cancelar" /> 
							</div>
						</td>
						<td>&nbsp;</td>
						<td>&nbsp;</td>
						<td colspan=2 align="right">
							<div class="row buttons">
							<br>
							<br>
								<?php echo CHtml::submitButton('Modificar',array('name'=>'modificar')); ?>
							</div>
						</td>
					</tr>	
					
			</table>						
		</form>
<?php $this->endWidget(); ?>
<?php $this->renderPartial('//mensaje/_mensaje'); ?>
</div><!-- form -->
	</body>
</html>